wait for the dom to load javascript

51

wait for the dom to load javascript -

document.addEventListener('DOMContentLoaded', (event) => {
  //the event occurred
})

Comments

Submit
0 Comments